package io.renren.modules.learn.service.impl;

import io.renren.modules.learn.dao.PythonKnowledgeDao;
import io.renren.modules.learn.entity.PythonKnowledgeEntity;
import io.renren.modules.learn.service.PythonKnowledgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class PythonKnowledgeServiceImpl implements PythonKnowledgeService {
    @Autowired
    private PythonKnowledgeDao knowledgeDao;
    @Override
    public List<PythonKnowledgeEntity> getByChapterId(Integer chapterId) {
        return knowledgeDao.getByChapterId(chapterId);
    }
    @Override
    public PythonKnowledgeEntity getById(Integer id) {
        return knowledgeDao.getById(id);
    }
} 